package com.example.tests;

import org.testng.annotations.Test;

public class ContactModificationTests extends TestBase{
	
	@Test
	public void modifySomeContact() {
		app.getContactHelper().goToMainPage();
		app.getContactHelper().goToContactEditPage(1);		
		ContactData contact = new ContactData();
		contact.firstname = "new name";
		contact.lastname = "";
		contact.address = "";
		contact.homephone = "";
		contact.mobilephone = "";
		contact.workphone = "";
		contact.email1 = "";
		contact.email2 = "";
		contact.birthday = "-";
		contact.birthmonth = "-";
		contact.birthyear = "";
		contact.groupselect = "";
		contact.address2 = "";
		contact.home = "";
		app.getContactHelper().fillContactCreationForms(contact, true);
		app.getContactHelper().submitContactModification();
		app.getContactHelper().goBackToMainPage();
	}
}
